package licode.unisop.provider.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * 定义资源信息
 *
 * @author licode
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
public class SiAssetEntry {
    private SiAsset asset;

    /**
     * 拥有的资源集合
     */
    private List<SiAsset> relation;

    public boolean hasRelation() {
        return (null != relation && !relation.isEmpty());
    }
}
